// 自动生成模板OmsOrderSetting
package biz

import "github.com/go-kratos/kratos/v2/log"

// omsOrderSetting表 结构体  OmsOrderSetting
type OmsOrderSetting struct {
	Id                  *int  `json:"id" form:"id" gorm:"primarykey;comment:id;column:id;size:19;"`                                                    //id
	FlashOrderOvertime  *int  `json:"flashOrderOvertime" form:"flashOrderOvertime" gorm:"comment:秒杀订单超时关闭时间(分);column:flash_order_overtime;size:10;"`  //秒杀订单超时关闭时间(分)
	NormalOrderOvertime *int  `json:"normalOrderOvertime" form:"normalOrderOvertime" gorm:"comment:正常订单超时时间(分);column:normal_order_overtime;size:10;"` //正常订单超时时间(分)
	ConfirmOvertime     *int  `json:"confirmOvertime" form:"confirmOvertime" gorm:"comment:发货后自动确认收货时间（天）;column:confirm_overtime;size:10;"`           //发货后自动确认收货时间（天）
	FinishOvertime      *int  `json:"finishOvertime" form:"finishOvertime" gorm:"comment:自动完成交易时间，不能申请退货（天）;column:finish_overtime;size:10;"`          //自动完成交易时间，不能申请退货（天）
	CommentOvertime     *int  `json:"commentOvertime" form:"commentOvertime" gorm:"comment:订单完成后自动好评时间（天）;column:comment_overtime;size:10;"`           //订单完成后自动好评时间（天）
	MemberLevel         *bool `json:"memberLevel" form:"memberLevel" gorm:"comment:会员等级【0-不限会员等级，全部通用；其他-对应的其他会员等级】;column:member_level;"`             //会员等级【0-不限会员等级，全部通用；其他-对应的其他会员等级】
}

// TableName omsOrderSetting表 OmsOrderSetting自定义表名 oms_order_setting
func (OmsOrderSetting) TableName() string {
	return "oms_order_setting"
}

type OmsOrderSettingRepo interface {
}

type OmsOrderSettingUsecase struct {
	repo OmsOrderSettingRepo
	log  *log.Helper
}

func NewOmsOrderSettingUsecase(repo GreeterRepo, logger log.Logger) *OmsOrderSettingUsecase {
	return &OmsOrderSettingUsecase{repo: repo, log: log.NewHelper(logger)}
}
